package com.lostandfound.service.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lostandfound.dao.ReplyDao;
import com.lostandfound.entity.Reply;
import com.lostandfound.service.ReplyService;

@Service("replyServicce")
@Transactional
public class ReplyServiceImpl implements ReplyService {
	
	@Autowired
	private ReplyDao replyDao;

	@Override
	public Serializable save(Reply obj) {
		return replyDao.save(obj);
	}

	@Override
	public void update(Reply obj) {
		replyDao.update(obj);
	}

	@Override
	public void delete(Reply obj) {
		replyDao.delete(obj);
	}

	@Override
	public Reply selectByPrimary(Long id) {
		return replyDao.selectByPrimary(id);
	}

	@Override
	public List<?> listReplyByPage(Map<String, Object> pagemap) {
		return replyDao.listReplyByPage(pagemap);
	}

	@Override
	public int Count(Map<String, Object> pagemap) {
		return replyDao.Count(pagemap);
	}

	@Override
	public void deleteReplyByBranch(Long[] replys) {
		replyDao.deleteReplyByBranch(replys);
	}

	@Override
	public void deleteReplyByUser(Long uid) {
		replyDao.deleteReplyByUser(uid);
	}

	@Override
	public void deleteReplyByTopic(Long tid) {
		replyDao.deleteReplyByTopic(tid);
	}

}
